package cn.com.chengmandian.erp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ERP系统-合同信息表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("erp_contract_info")
@ApiModel(value = "ErpContractInfo对象", description = "ERP系统-合同信息表")
public class ErpContractInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("合同目录ID")
    private Integer catalogId;

    @ApiModelProperty("合同模版ID，允许为空")
    private Integer templateId;

    @ApiModelProperty("业务流水号，自动生成的业务编号")
    private String contractNo;

    @ApiModelProperty("合同名称")
    private String name;

    @ApiModelProperty("合同公司id")
    private Integer companyId;

    @ApiModelProperty("合同主题-省编号")
    private String provinceCode;

    @ApiModelProperty("合同主题-省名称")
    private String provinceName;

    @ApiModelProperty("合同主题-市编号")
    private String cityCode;

    @ApiModelProperty("合同主题-市名称")
    private String cityName;

    @ApiModelProperty("合同主题-区县编号")
    private String districtCode;

    @ApiModelProperty("合同主题-区县名称")
    private String districtName;

    @ApiModelProperty("合同主题-关联品牌名")
    private Integer brandId;

    @ApiModelProperty("合同主题-公司简称")
    private String entitySimpleName;

    @ApiModelProperty("合同主题-关联货品分类")
    private Integer stockCategorySubId;

    @ApiModelProperty("（废弃）合同签订对象主体1-客户 2-供应商 3-员工 9-自定义")
    private Integer signSubject;

    @ApiModelProperty("（废弃）对方主体ID")
    private Integer subjectId;

    @ApiModelProperty("（废弃）对方主体名称")
    private String subjectName;

    @ApiModelProperty("（废弃）对方主体联系人姓名")
    private String subjectContactName;

    @ApiModelProperty("（废弃）对方主体联系人电话")
    private String subjectContactPhone;

    @ApiModelProperty("（废弃）对方主体联系地址")
    private String subjectAddress;

    @ApiModelProperty("（废弃）我方主体ID")
    private Integer ourId;

    @ApiModelProperty("（废弃）我方主体名称")
    private String ourName;

    @ApiModelProperty("（废弃）我方主体联系人姓名")
    private String ourContactName;

    @ApiModelProperty("（废弃）我方主体联系人电话")
    private String ourContactPhone;

    @ApiModelProperty("（废弃）我方主体联系地址")
    private String ourAddress;

    @ApiModelProperty("合同主要条款内容")
    private String mainContent;

    @ApiModelProperty("规范内容模板")
    private String contentTemplete;

    @ApiModelProperty("模板内容值")
    private String contentValue;

    @ApiModelProperty("doc下载链接")
    private String docUrl;

    @ApiModelProperty("（废弃）pdf预览链接")
    private String pdfUrl;

    @ApiModelProperty("制式合同对比doc下载链接")
    private String compareDocUrl;

    @ApiModelProperty("合同状态 1-拟制中 2-审批中 3-审批完成 4-审批失败 5-作废")
    private Integer status;

    @ApiModelProperty("状态说明")
    private String message;

    @ApiModelProperty("盖章时间")
    private Date sealTime;

    @ApiModelProperty("用印状态 1-待盖章 2-审批中 3-盖章完成 4-已归档 5-审批失败")
    private Integer sealStatus;

    @ApiModelProperty("扩展字段数据，json格式")
    private String fieldData;

    @ApiModelProperty("流程审批实例ID")
    private Integer osInstanceId;

    @ApiModelProperty("发起时间")
    private Date auditTime;

    @ApiModelProperty("发起人")
    private String auditUser;

    @ApiModelProperty("创建人")
    private Integer createUser;

    @ApiModelProperty("创建人姓名")
    private String createName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
